:root {
/*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
 }

 li {
    list-style: none;
 }
 body {
  background-color: rgb(235, 235, 227);
   }
 
 .container {
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-direction: column;
 
 }
  .container ul {
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .container ul li {
    letter-spacing: 1px;
    padding: 5px 15px;
    cursor: pointer;
    margin: 5px;
    text-transform: 1px;
    border-bottom: 1px solid transparent;
    font-weight: bold;
    font-size: 17px;
  }

  .art_category{
    text-decoration: none; 
    letter-spacing: 1px;
    margin-bottom: 1em; 
    cursor: pointer;
    margin-top: 1em;
    font-size: 15px;
  }

  .art_category a {
    color: rgb(246, 244, 244);
    text-decoration: none;
    background-color: #e84545;
    padding: .5em;
    transition: border-color 0.3s ease; 
    display: flex; 
    flex-wrap: wrap;
  } 

  .art_category a active{
    border-color: #c70039;
    color: #e84545;
  }
  
  .container ul li.active{
    border-color: #c70039;
    color: #e84545;
  }
  
 .art_cat {
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
}

.art_cat .itembox {
    position: relative;
    width: 300px; 
    height: 400px;
    margin: 6px;
    display: block;  
}

.data-filter {
   display: flex; 
    flex-wrap: wrap;
    flex: 0 0 33.3333%;
} 

.art_cat .itembox img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    cursor: pointer
}

.image__img {
  display: block;
  width: 100%;
   flex: 0 0 calc(33.33% - 6.66px); 
  box-sizing: border-box;
}

.image__overlay {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction:  column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.image__overlay:hover {
  opacity: 1;
  z-index: 10; 
}
.container .art_cat .itembox.show {
  animation: show .5s ease 0s 1 forwards;
  transform-origin: center;
}

.container .art_cat .itembox.hide {
  animation: hide .5s ease 0s 1 forwards;
  transform-origin: center;
}



@keyframes hide {
  0%{
    transform: scale(1);
  }
  100% {
    transform: scale(0);
    width: 0;
    height: 0;
    margin:0;
  }
}

@keyframes show {
  0%{
    transform: scale(0);
    width: 0;
    height: 0;
    margin:0;
  }
  100% {
    transform: scale(1);
   
  }
}

@media(max-width: 480px) {
  .art_cat .itembox {
    width: 320px;
    height: 250px;
  }
}

@media screen and (max-width: 720px) {
  .home__title {
   margin-bottom: 10px;
  }
}
h1 ,h2, h4 {
  display: flex;
  justify-content: center;
  text-align: center;
}

h3  {
  font-family: 'roboto-serif', Georgia,'Times New Roman', serif;
  font-weight: bold; 
  font-size: 110%;
  color:rgba(0, 0, 0, 0.6)
}

.image__title  {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 15px;

}
.image__description  {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12px;
}


@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}


.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */

.placehold {
  background-color: grey;
}

.flex_container {
    display: flex;
    justify-content: center; /* This centers the button horizontally */
    align-items: center; /* This centers the button vertically */
    margin-bottom: 1em; 
}
.button {
    padding: 10px 5px;
    color: white; 
    background-color: #e84545;
    margin-left: 5px;
    height: auto;
}

.button:hover {
  background-color: #ddd;
    color: black;
    font-size: 17px;
   
}

.home__title {
  font-family: "Roboto Serif", serif;
  color:rgba(0, 0, 0, 0.6);
     margin-top: 3.0em;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
   font-weight: bold;
}

@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

@media screen and (max-width: 920px) {
 .about {
    margin: 2em; 
    width: 90%
  }
}
@media screen and (max-width: 1100px) {
  #my-modal  {
   width: 300px;
  height: 225px;
  max-width: 90%; /* Prevents modal from exceeding 90% width on small screens */
  max-height: 100vh;
  margin-top: 10vh;
  }
  
}

#demonsText {
  margin-bottom: 2em; 
  color: rgb(51, 51, 51, .9);
  width: 75%;
  animation-name: slide-in-horizontal;
  animation-duration: 4s; /* Duration of the animation */
 }

 p, strong, em {
  /* font-family: 'roboto-serif',  serif; */
  margin-bottom: .25em; 
 }

/* Define the animation sequence */
@keyframes slide-in-horizontal {
  /* Start 150% of the viewport width to the right of its original position */
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }

  80% {
    transform: translateX(-1rem);
  }

  100% {
    opacity: 1;
    transform: translate(0);
  }
}

.slide-element {
  animation-name: slide-in-horizontal;
  animation-duration: 3s; 
  margin-top: 1em; 
  font-size: 100%;
  background-color: rgb(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.7);
   box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
  padding: .25em;
  border-radius: .25rem;
}

.navbar {
    overflow: hidden;
    position: fixed; /* Fixes the navbar to the top of the viewport */
    top: 0; /* Aligns it to the very top */
    width: 100%; /* Ensures it stretches across the full width */
    z-index: 1000; /* Ensures it stays on top of other elements */
    padding-left: 2em;
    background-color: rgb(232, 69, 69, 0.6);
     backdrop-filter: blur(24px);
    --webkit-backdrop-filter: blur(30px); /* For safari */
    transition: right .4s;
}

/* Style the links inside the navigation bar */
.navbar a {
    float: left; /* Aligns links horizontally */
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;    /* Removes default link underlines */
}

/* Change the color of links on hover */
.navbar a:hover {
    background-color: #ddd;
    color: black;
}
.button a {
    transition: color 0.4s ease-in, background-color 0.4s ease-in;
    padding: 5px;
}

.about {
  margin-top: 1.5em;
  margin-left: 2rem;
  margin-right: 2rem;
  font-size: 20px;
}

dialog {
  margin-left: 3em; 
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
   background-color: rgb(232, 69, 69, 0.8);
   font-size: 110%;
      /* Optional, but useful if it shouldn't span full width */
  margin: 10vh auto;
  width: 20vw;
}

#my-modal {   
  box-shadow: 5px 10px rgb(232, 69, 69, 0.3);                                   
}


#my-modal p {
    margin-bottom: .5em;  
    margin-right: .5em;  
}

dialog a {
    text-decoration: none;
    color: #ccc;
}
dialog a:hover {
    background-color: #ddd;
    color: black;
}
/* Style the semi-transparent overlay that appears behind the modal */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

#close-modal-btn {
    margin-left: auto;
    margin-right: auto;
     width: 20%;  
}

.roboto-serif {
  font-family: "Roboto Serif", serif;
  font-optical-sizing: auto;
}

#landing__img {
  justify-content: center;
  align-items: center;
  margin-top: 3rem; 
  width: 470px;/* The width you want to force */
  height: 507px;
  position: relative; 
}

@media(max-width: 480px) {
  #landing__img {
    img {
  max-width: 100%; /* Ensures the image doesn't exceed its original size or container width */
  height: auto;    /* Automatically calculates height to maintain proportion */
  display: block;  /* Optional: Helps with alignment and margin control */
} 
    }
}

.icon {
  vertical-align: middle; /* Aligns the center of the SVG with the middle of the text */
  width: 1.5em; /* Optional: Scale SVG relative to current font size */
  height: 1.5em; /* Optional: Scale SVG relative to current font size */
}

::-webkit-scrollbar {
  width: .6rem; 
  border-radius: .5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(228, 8%, 35%);
  border-radius: .5rem;
} 

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 45%);
}

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
   background-color: rgb(232, 69, 69, 0.8);
  padding: 6px; 
  display: inline-flex;
  border-radius: .25rem;
  color: rgb(232, 69, 69, 0.5);
  font-size: 1.25rem; 
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
  z-index: var(--x-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/* Show Scroll Up */
.show-scroll {
  bottom:  3rem;
}

.ri-arrow-up-fill {
  color: rgb(201, 190, 190); 
 
}
